#ifndef _TIMER_H_
#define _TIMER_H_

#define Core_TimerInit() pTimerTop = NULL

typedef void (*TfpTimerOutHandler)(void *pTimer);

typedef struct CoreTimer{
    UInt16 Count;
    TfpTimerOutHandler OnTimeOut;
    struct CoreTimer *pNext;
} stCoreTimer;


void Core_SetTimer(stCoreTimer *pTimer);
void Core_RunTimer(UInt16 Count);
void Core_StartTimer(void);
void Core_PhyTimerInterrupt(void);

extern stCoreTimer *pTimerTop;


#endif /* _TIMER_H_ */
